<?php

/* 
 *------------------------------------------------------------------------------
 * Project Name  : e-Synergy Library System
 *         Code  : ESN-LBS
 *
 * Created By    : Junlapong
 *         Date  : 2009/08/27 20:35
 * 
 * $Id$
 *------------------------------------------------------------------------------
 *    copyright: e-Synergy Co., Ltd.
 *==============================================================================
 */

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

// TODO: change date() to gmdate() for adjust difference time ex. GMT+7 = diff 7 * 60 * 3600 sec.

/**
 * sys_date
 *
 * @access	public
 * @param	string
 * @param	string
 * @return	string
 */	
if (!function_exists('sys_date'))
{
	function sys_date()
	{
		return date("Y/m/d");
	}	
}

// ------------------------------------------------------------------------

/**
 * sys_time
 *
 */	
if (!function_exists('sys_time'))
{
	function sys_time()
	{
		return date("H:i:s");
	}	
}

// ------------------------------------------------------------------------

/**
 * sys_date_time
 *
 */	
if (!function_exists('sys_date_time'))
{
	function sys_date_time()
	{
		return date("Y/m/d H:i:s");
	}	
}

// ------------------------------------------------------------------------

/**
 * sys_timestamp
 *
 */	
if (!function_exists('sys_timestamp'))
{
	function sys_timestamp()
	{
		return time();
	}	
}

// ------------------------------------------------------------------------

/* End of file system_helper.php */
/* Location: application/helpers/system_helper.php */